import {
    doExec
} from '@/api/request'

const apiPrefix = window.apiPrefix;

//本地
export const api = {
    // 系统管理员
    manage: {
        // 登录
        login(opts) {
            return doExec(`${apiPrefix}admin/loginApp`, opts);
        },
        out(opts) {
            return doExec(`${apiPrefix}out`, opts);
        }
    },
    // 视频监控
    video: {
        //水厂视频列表
        waterwork(opts) {
            return doExec(`${apiPrefix}api/video/waterwork`, opts);
        },
        //供水泵站视频列表
        waterpum(opts) {
            return doExec(`${apiPrefix}api/video/waterpum`, opts);
        },
        //污水泵站视频列表
        swagepum(opts) {
            return doExec(`${apiPrefix}api/video/swagepum`, opts);
        },
        //污水厂
        swage(opts) {
            return doExec(`${apiPrefix}api/video/swage`, opts);
        },
        //水源
        water(opts) {
            return doExec(`${apiPrefix}api/video/water`, opts);
        },
        //处理
        deal(opts) {
            return doExec(`${apiPrefix}api/video/swage/deal`, opts);
        },
        //对应视频列表
        details(opts) {
            return doExec(`${apiPrefix}api/video/waterworks/video`, opts);
        }


    }
};